
<template>
<h1>事件指定指令</h1>
  <button v-on:@click="f">按钮</button>
  <button @click="f">按钮</button>

  <hr>
  <input type="text" placeholder="请输入您要搜素的商品" @keydown.enter="f2">

</template>

<script setup>
const f = () =>{
  console.log("被点了")
}
const f2 = () =>{
  console.log('正在为你搜素...')
}
</script>



<style scoped>

</style>